cmake_minimum_required(VERSION 3.19)

project(ascend-spi-test)

add_executable(${PROJECT_NAME} 
    ascend-spi.cpp
    wiringPiSPIFix.h wiringPiSPIFix.c     
)

# add_executable(${PROJECT_NAME} linux_spidev_test.c)

# runtime: libwiringPi.so
# debug: libwiringPiDev.so
target_link_libraries(${PROJECT_NAME}
    /usr/local/lib/libwiringPi.so
    /usr/local/lib/libwiringPiDev.so
)